# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        潘炎珍  
# Name:         demo04
# Description:
# Author:       98745
# Date:         2019/3/10
#-------------------------------------------------------------------------------

from numpy import *
b=arange(24).reshape(2,3,4)
print(b)
print('-------------')
b1=b.ravel()
print(b)
print('-------------')
print(b1)
print('---------------')
b2=b.flatten()
print(b2)
print('-----------------')
b.shape=(6,4)
print(b)
print('---------------')
b3=b.transpose()
print(b3)
print('-------------')
b.resize((2,12))
print(b)